.class Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$5;
.super Ljava/lang/Object;
.source "FootprintDetailEditActivity.java"

# interfaces
.implements Lcom/htc/android/footprints/utils/TitleGenerator$SearchListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->geocoderTitle(Landroid/location/Location;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

.field final synthetic val$setting:Lcom/htc/android/footprints/utils/SettingInfo;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Lcom/htc/android/footprints/utils/SettingInfo;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 525
    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$5;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    iput-object p2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$5;->val$setting:Lcom/htc/android/footprints/utils/SettingInfo;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onResult(ZLjava/lang/String;Ljava/lang/String;Landroid/location/Address;Z)V
    .locals 4
    .parameter "result"
    .parameter "title"
    .parameter "address"
    .parameter "addressInfo"
    .parameter "fixedByGPS"

    .prologue
    .line 530
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$5;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mHandler:Landroid/os/Handler;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$1200(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/os/Handler;

    move-result-object v2

    const/16 v3, 0x65

    invoke-virtual {v2, v3}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 532
    if-nez p1, :cond_0

    .line 550
    :goto_0
    return-void

    .line 534
    :cond_0
    if-eqz p5, :cond_2

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$5;->val$setting:Lcom/htc/android/footprints/utils/SettingInfo;

    iget-boolean v2, v2, Lcom/htc/android/footprints/utils/SettingInfo;->retrieveAddress:Z

    if-eqz v2, :cond_2

    .line 536
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$5;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mHandler:Landroid/os/Handler;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$1200(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/os/Handler;

    move-result-object v2

    const/16 v3, 0x67

    invoke-virtual {v2, v3}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 537
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$5;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v2

    iput-object p3, v2, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    .line 538
    invoke-virtual {p4}, Landroid/location/Address;->getPhone()Ljava/lang/String;

    move-result-object v0

    .line 539
    .local v0, phone:Ljava/lang/String;
    if-eqz v0, :cond_1

    .line 540
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$5;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v2

    iput-object v0, v2, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    .line 542
    :cond_1
    invoke-virtual {p4}, Landroid/location/Address;->getUrl()Ljava/lang/String;

    move-result-object v1

    .line 543
    .local v1, url:Ljava/lang/String;
    if-eqz v1, :cond_2

    .line 544
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$5;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v2

    iput-object v1, v2, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    .line 549
    .end local v0           #phone:Ljava/lang/String;
    .end local v1           #url:Ljava/lang/String;
    :cond_2
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$5;->this$0:Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;

    #getter for: Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mHandler:Landroid/os/Handler;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->access$1200(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/os/Handler;

    move-result-object v2

    const/16 v3, 0x64

    invoke-virtual {v2, v3}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_0
.end method
